#include <stdio.h>
int main() {
	int x, y, z, a, b, c;
	scanf("%d%d%d", &x, &y, &z);
	if (x < y)
		x = x, y = y;
	else
		a = x, x = y, y = a;
	if (x< z)
		x = x, z = z;
	else
		b = x, x = z, z = b;
	if (y< z)
		y = y, z = z;
	else
		c = y, y = z, z = c;
	printf("small to big: %d %d %d", x, y, z);

	return 0;

}